<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>aglajs 的使用</title>

		<!-- 引入js -->
		<script type="text/javascript" src="../js/angular.min.js" ></script>
	</head>
	<div ng-app="myapp" ng-controller="myctrl">
		<div>
			<input type="text" name="username" ng-model="name" /><br/>
			hello>> {{name}}
		</div>
	
	</div>
	<script>
		//初始化模型
		var myAPP= angular.module("myapp",[]);
		//定义一个模型控制器
		myAPP.controller("myctrl",["$scope",function($scope){
			$scope.name="黑马程序员";
		}]);
	</script>
	<body>
	</body>
</html>
